﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CarShop.Domain.Entities;

namespace CarShop.Data.EntityFramework.Mappings
{
    internal class PictureConfiguration : EntityBaseConfiguration<Picture, int>
    {
        public PictureConfiguration()
        {
            Property(p => p.Name).IsRequired().HasMaxLength(50);
            Property(p => p.Description).IsOptional();
            Property(p => p.Content).IsRequired();
            Property(p => p.ContentType).IsRequired().HasMaxLength(50);
        }
    }
}
